package com.association.main.dto;

import com.association.main.domain.Clubs;
import com.association.main.domain.Events;
import com.association.main.domain.Users;
import lombok.Data;

@Data
public class EventsDto extends Events {
    private Clubs clubs;
    private Users users;
    private long count;
    public EventsDto(){

    }

    public EventsDto(String clubName,String userName,String userEmail,String userPhone,String logo,long count){
        this.clubs = new Clubs();
        this.users = new Users();

        //只需要这几个数据就行
        this.clubs.setName(clubName);
        this.users.setName(userName);
        this.users.setEmail(userEmail);
        this.users.setPhone(userPhone);
        this.clubs.setLogo(logo);
        this.count=count;
    }
}
